package com.daidai.Impl;

import com.daidai.BookDao;
import com.daidai.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("bookService")
public class ServiceDaoImpl implements BookService {

    @Autowired
    public BookDao bookDao;

    @Value("zhangsan")
    public String name;

    @Override
    public void serviceRun() {
        System.out.println("service is run...");
        bookDao.saveBook();
    }
}
